import http from '../utils/request'

// type ssoLoginResult = {
//   code: number;
//   data: {
//     userId: string;
//     accessToken: string;
//     refreshToken: string;
//     expiresTime: number;
//     openid?: string;
//   };
//   msg: string;
// };

export interface ssoLoginParams {
  auth: string
  user: string
  key: string
  tenantId: string
}

export function fetchSsoLogin(data: ssoLoginParams): Promise<any> {
  return http.post( "/app-api/member/auth/cake-sso-login",data);
}

export function fetchUserInfo(): Promise<any> {
  return http.get( "/app-api/member/user/getMovieUser");
}
